import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'
import StudentGrade from '../views/StudentGrade'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: '登录界面',
    redirect: '/login'
  },
      {
        path: '/login',
        component: Login,
      },
      {
        path: '/studentGrade',
        component:StudentGrade
      }


]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
